﻿using System;
using System.ComponentModel.DataAnnotations;

namespace S1.Models
{
    public partial class Product
    {
        public int ProductId { get; set; }

        [Required(ErrorMessage = "产品名称是必须的")]
        [StringLength(255, MinimumLength = 2, ErrorMessage = "产品名称长度必须在2-255个字符")]
        public string ProductName { get; set; }

        [StringLength(20, ErrorMessage = "产品分类长度不能超过20")]

        public string ProductCategory { get; set; }

        [Required(ErrorMessage ="必填")]
        public string Ingredients { get; set; }
        public decimal CurrentPrice { get; set; }

        public decimal ProductionCost { get; set; }

        public bool IsSeasonal { get; set; }

        public bool IsCurrentlyAvailable { get; set; }

        public DateTime LaunchDate { get; set; }
    }

}

